﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace CJSignalR
{
    public partial class LinkConfig : Form
    {
        public Form1 mainForm { get; set; }
        public LinkConfig(Form1 form1)
        {
            InitializeComponent();
            mainForm = form1;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            string enterNo = txtEnterNo.Text;
            string terminalName = txtTerminalName.Text;
            string signalRIP = txtSignalRIP.Text;

            //记录的数据存本地


            //传给前台
            mainForm.SetLinkConfig(enterNo, terminalName, signalRIP);
            this.Close();


        }
    }
}
